<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8" />
        <title>CSS 否定伪类选择符 E:not()_CSS参考手册_web前端开发参考手册系列</title>
        <meta name="author" content="phpstudy.net" />
        <meta name="copyright" content="www.phpstudy.net" />
        <style>
            p:not(.abc){
                color:#ccc;
            }

            p:nth-of-type(odd) {
                background: #f00;
            }

            .hd a:target {
                color: #f00;
                text-decoration: none;
            }
            p:only-of-type {
                color: #f00;
            }
        </style>
    </head>
    <body>
        
        <p class="abc">否定伪类选择符 E:not()</p>
        <p id="abc">否定伪类选择符 E:not()</p>
        <p class="abcd">否定伪类选择符 E:not()</p>
        <p>否定伪类选择符 E:not()</p>
    </body>
</html>